package fitness;

import java.text.DecimalFormat;

import optimizers.ganeat.xor.ConstantsXOR;

import util.MyUtil;

public class FastStrongOscillatorResult extends FitnessResult {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public double amplitute;
	public double limitcycle;
	public double speed;

	@Override
	public double finalResult() {
		// return (sd/(25*600) +1 / mse/ (1+ (average-5)*(average-5)));
		return amplitute * limitcycle / speed;
	}

	@Override
	public String toString() {
		return common.Static.df4.format(finalResult()) + " = "
				+ common.Static.df4.format(amplitute) + "*"
				+ common.Static.df4.format(limitcycle) + "/"
				+ common.Static.df4.format(speed);
	}

	@Override
	public Double[] getDecomposition() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean goodSolution() {
		// TODO Auto-generated method stub
		return false;
	}

}
